package com.yanqu.road.logic.bussiness.player;

import com.yanqu.road.entity.player.UserBlacklist;
import com.yanqu.road.logic.bussiness.DaoHelper;

import java.util.Map;

public class BlacklistBussiness {
    public static Map<Integer, Map<Long, UserBlacklist>> getUserBlacklistMap(long userId) {
        return DaoHelper.getUserBlacklistDaoImpl().getUserBlacklistMap(userId);
    }
    public static Map<Long, Map<Integer, Map<Long, UserBlacklist>>> getAllUserBlacklistMap() {
        return DaoHelper.getUserBlacklistDaoImpl().getAllUserBlacklistMap();
    }

    public static boolean addUserBlacklist(UserBlacklist data) {
        return DaoHelper.getUserBlacklistDaoImpl().add(data);
    }

    public static boolean updateUserBlacklist(UserBlacklist data) {
        return DaoHelper.getUserBlacklistDaoImpl().update(data);
    }

    public static Map<Integer, Map<Long, Map<Long, UserBlacklist>>> getCrossUserBlacklistMap(long userId) {
        return DaoHelper.getCrossUserBlacklistDaoImpl().getCrossUserBlacklistMap(userId);
    }

    public static Map<Long, Map<Integer, Map<Long, Map<Long, UserBlacklist>>>> getAllCrossUserBlacklistMap() {
        return DaoHelper.getCrossUserBlacklistDaoImpl().getAllCrossUserBlacklistMap();
    }

    public static boolean addCrossUserBlacklist(UserBlacklist data) {
        return DaoHelper.getCrossUserBlacklistDaoImpl().add(data);
    }

    public static boolean updateCrossUserBlacklist(UserBlacklist data) {
        return DaoHelper.getCrossUserBlacklistDaoImpl().update(data);
    }
}
